home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
tcmouse.zip
/
TCMOUSE.DEF
Wrap
Text File
|
1987-12-10
|
2KB
|
79 lines
;tcpopup.def -- turbo C popup mouse menu for cursor control, etc
; S Powsner 11/25/87
;
; Set up initial labels for mouse commands
begin anyb,anyb,anyb,mlfast,mrfast,mouseu,moused,16,40
; -------------------- Mouse left -----------------------
mlfast: MATCH 25,20,,"F6-Message",cursorl,ml20 ;if still edit mode go left
cursorl: TYPE 0,75 ; left cursor
ml20: ASSIGN ,,,mlslow,mrslow,,,160
mlslow: MATCH 25,20,,"F6-Message",ml40,cursorl ;if still no edit, left slowly
ml40: EXECUTE ml45,cursorl
ml45: ASSIGN ,,,mlfast,mrslow,,,16
; ------------------- Mouse right -----------------------
mrfast: MATCH 25,20,,"F6-Message",cursorr,ml20 ;if still edit mode go right
cursorr: TYPE 0,77 ; right cursor
mrslow: Match 25,20,,"F6-Message",mr40,cursorr ;if still no edit, right slow
mr40: EXECUTE ml45,cursorr
; --------------------- Mouse up -----------------------
mouseu: TYPE 0,72 ; up cursor
; ------------------- Mouse down -----------------------
moused: TYPE 0,80 ; down cursor
nothing: NOTHING
; -------------------- Any Button ---------------------------
;
anyb: MATCH 25,20,,"F6-Edit",mainm,anyb5 ;non-edit
anyb5: MATCH 25,20,,"F6-Message",editm,mainm ;edit
mainm: MENU ,6,67,NORMAL
OPTION "select", tenter
OPTION "backout", tesc
OPTION "main mnu", tf10
OPTION "Menu off", nothing
MEND
editm: MENU ,2,67,NORMAL
OPTION "Mark Bgn", markbgn
OPTION "Mark End", markend
OPTION "Copy Blk", copyblk
OPTION "Move Blk", moveblk
OPTION "Del Blk", delblk
OPTION "Main Mnu", tf10
OPTION "<esc>", tesc
OPTION "Y(es)", typey
OPTION "N(o)", typen
OPTION "<-' enter",tenter
OPTION "Menu Off", nothing
MEND
markbgn: EXECUTE tcntlk,typeb
markend: EXECUTE tcntlk,typek
copyblk: EXECUTE tcntlk,typec
moveblk: EXECUTE tcntlk,typev
delblk: EXECUTE tcntlk,typey
; --------------------- Misc ----------------------------------
;
tf10: TYPE 0,68
tcntlk: TYPE 11
tenter: TYPE 13
tesc: TYPE 27
typeb: TYPE "B"
typec: TYPE "C"
typek: TYPE "K"
typen: TYPE "N"
typeq: TYPE "Q"
typev: TYPE "V"
typey: TYPE "Y"